<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<head>
    <meta charset="UTF-8">
    <title>运维人员——我的工单</title>
    <link  rel="stylesheet" type="text/css" href="<%= basePath%>resources/css/pcrepairman.css" />
    <link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>resources/css/jNotify.jquery.css"/>
    <script src="<%= request.getContextPath()%>resources/js/pcrepairman.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/mobileOperator/js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/mobileOperator/js/angular.min.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/js/PCrepairmanController.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath()%>resources/js/echarts.min.js" ></script>

    <script type="text/javascript" src="<%= request.getContextPath()%>resources/js/jNotify.jquery.js"></script>
</head>

<body ng-app="myapp">
<!--头部开始-->
<div id="head">
    <div id="head_con">
        <p class="title">智能报修系统</p>
        <div id="head_right">
            <a href="#">
						<span>
						<img src="../../resources/img/email.png"/>
					</span> 收件箱
            </a>
            <button id="downloadAPP">APP下载</button>
        </div>
    </div>
</div>
<!--头部结束-->
<!--左边开始-->
<!--左边-->
<div id="staffLeft">
    <div id="staffLeftCon">
        <!--运维人员的信息 不用修改-->

        <div id="staffInfo" ng-controller="InformationCtrl">
            <!--运维人员姓名 用什么方法得到的？-->
            <p class="staffName">{{repairmaninfo.userName}}</p>
            <!--运维人员学号 和姓名一样用方法从数据库中得到-->
            <p class="staffNum" id="receiveOne">{{repairmaninfo.userAccount}}</p>
            <!--运维人员职位-->
            <p class="place">运维人员</p><!--运维人员写死了，需要可以再次修改 与上一致可以从数据库中得到-->
        </div>



        <style>
            #operation a:link,a:visited,a:hover{
                text-decoration: none;
                color: #4e7500;
            }
        </style>

        <div id="operation">
            <!--左边子菜单 分开为四个部分-->
            <ul >
                <a href="/PCrepairman_one"><li id="one" class="active">我的工单</li></a>
               <a href="/PCrepairman_two"><li id="two" >待处理</li></a>
               <a href="/PCrepairman_three"><li id="three" >我的绩效</li></a>
               <a href="/PCrepairman_four"> <li id="four" >我的信息</li></a>
            </ul>
        </div>
        <div class="phoneNum" ng-controller="PhoneInformationCtrl">
            服务电话：{{phoneNum}} <!--电话号码部分不用修改 ng-controller="PhoneInformationCtrl是怎样的操作-->
        </div>
    </div>
</div>

<!--左边结束-->
<!--右边开始-->
<div id="pushOrdersRight">
    <div id="pushOrdersRightShow">
        <!--我的工单-->

        <!--甩单弹出框-->
        <div id="receive2" ng-controller="suaiDanCtrl" class="hidden">
            <div id = "sdpeople">可甩单的运维人员:</div>
            <select  ng-model="receiveTwo" ng-options="receive.userName for receive in receives">
            </select>

            <h3 class="chooseitem">你选择的是  工号：{{receiveTwo.userAccount}}   姓名： {{receiveTwo.userName}}  熟悉领域{{receiveTwo.type}}</h3>


            <div id="suaidanbuttom"><button ng-click="gosuaidan()">甩单</button>

                <button ng-click="suaidanCancel()">取消</button></div>



        </div>
<!--我的工单-->
        <div id="MYTICKET" class="list"><a href="PCrepairman_one.jsp">我的工单</a>
            <table ng-controller="ticketCtrl">
                <thead>
                <tr>
                    <th>创建时间</th>
                    <th>工单号</th>
                    <th>故障种类</th>
                    <th>工单状态</th>
                    <th>甩单情况</th>
                    <th>甩单原因</th>
                    <th>工单评分</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="ticket in tickets | orderBy:'jobnumber':true">
                    <td>{{ticket.uploadTime | newtime}}</td>
                    <td>{{ticket.jobnumber}}</td>
                    <td>{{ticket.one}}</td>
                    <td>{{ticket.isComplete | wordStatus}}</td>
                    <td><input type="submit" value="甩单" ng-click="go(ticket)" /></td>
                    <td ng-model="reason">{{ticket.reason}}</td>
                    <td>{{ticket.commentStar}}</td>
                </tr>

                </tbody>
            </table>

        </div>


    </div>

</div>
<!--右边结束-->




<div id="footer" class="footer">
    <p class="footerWord">版权所有&nbsp;四川旅游学院</p>
</div>


</body>

</html>
